package com.vallis.lottery.domain;

import com.vallis.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.vallis.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 标准票库对象 standard_ticket
 *
 * @author vallis
 * @date 2022-08-12
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StandardTicket extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 前区1 */
    @Excel(name = "前区1")
    private Long firstFront;
    /** 前区2 */
    @Excel(name = "前区2")
    private Long secondFront;
    /** 前区3 */
    @Excel(name = "前区3")
    private Long thirdFront;
    /** 前区4 */
    @Excel(name = "前区4")
    private Long fourthFront;
    /** 前区5 */
    @Excel(name = "前区5")
    private Long fifthFront;
    /** 前区6 */
    @Excel(name = "前区6")
    private Long sixFront;
    /** 后区1 */
    @Excel(name = "后区1")
    private Long firstEnd;
    /** 后区2 */
    @Excel(name = "后区2")
    private Long secondEnd;
    /** 票种 */
    @Excel(name = "票种")
    private Long ticketType;
    /** 重复次数 */
    @Excel(name = "重复次数")
    private Long repeatTimes;
    /** 期数 */
    @Excel(name = "期数")
    private Long num;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("firstFront", getFirstFront())
            .append("secondFront", getSecondFront())
            .append("thirdFront", getThirdFront())
            .append("fourthFront", getFourthFront())
            .append("fifthFront", getFifthFront())
            .append("sixFront", getSixFront())
            .append("firstEnd", getFirstEnd())
            .append("secondEnd", getSecondEnd())
            .append("ticketType", getTicketType())
            .append("repeatTimes", getRepeatTimes())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("deleted", getDeleted())
            .append("remark", getRemark())
            .append("num", getNum())
        .toString();
    }
}
